package com.blb.utils;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Collection;

@NoArgsConstructor
@Data
public class DataTablePage<T> {

    private int draw = 1;
    private long recordsTotal;
    private long recordsFiltered;
    private Collection<T> data;

    public DataTablePage(long recordsTotal, long recordsFiltered, Collection<T> data) {
        this.data = data;
        this.recordsTotal = recordsTotal;
        this.recordsFiltered = recordsFiltered;
    }
}
